﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AreaSpider
{
    class BuildArea
    {
        public static void build()
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("重新生成Area.dll："+ Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.Parent.Parent.FullName + @"\Area.sln");
            Process.Start(@"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe",Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.Parent.Parent.FullName + @"\Area.sln /p:configuration=Release");

        }
    }
}
